package com.handsome.装饰者模式;

/**
 * @author niechun
 * @date 2023/2/27 20:26
 */
public abstract class Drink {
    /**
     * 描述
     */
    public String description;
    /**
     * 价格
     */
    private float price=0.0f;

    /**
     * 计算费用的抽象方法
     * @return
     */
    public abstract float cost();

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
